import request from '@/router/axios';

export const getList = (page, size, params) => {
  return request({
    url: '/order/sellerSettlementApply/list',
    method: 'post',
    params: {
      ...params,
      page,
      size,
    }
  })
}
export const remove = (id) => {
  return request({
    url: '/order/sellerSettlementApply/delete',
    method: 'post',
    meta: {
      isSerialize: true,
    },
    data: {
      id,
    }
  })
}

export const add = (row) => {
  return request({
    url: '/order/sellerSettlementApply/add',
    method: 'post',
    meta: {
      isSerialize: true,
    },
    data: row
  })
}

export const update = (row) => {
  return request({
    url: '/order/sellerSettlementApply/edit',
    method: 'post',
    meta: {
      isSerialize: true,
    },
    data: row
  })
}

export const changeStatus = (userId, status) => {
  return request({
    url: '/order/sellerSettlementApply/changeStatus',
    method: 'post',
    meta: {
      isSerialize: true,
    },
    data: {
      userId,
      status
    }
  })
}

export const paymentApplys = (ids) => {
  return request({
    url: '/order/sellerSettlementApply/paymentApplys',
    method: 'post',
    meta: {
      isSerialize: true,
    },
    data: {
      ids,
    }
  })
}